<html>
	<head>
		<title>test</title>
		<script language="javascript">
		function doAction() {
			alert(top.window.external);
			return false;
		}
		</script>
	</head>
	<body>
		Hello world!
		<a href='#' onclick="return doAction()">test</a>
	</body>
</html>